<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/hlht/updateStationOpenfor.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<br>' +
            '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>互联互通</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>互联互通前端开关控制</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">互联互通前端开关控制</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="frmHlhtOperatorSetting">
                        <input type="hidden" name="hlhtOperatorSettingId" value="${hlhtOperatorSetting.hlhtOperatorSettingId}">
                        <div class="form-group row">
                            <label class="col-sm-1 col-form-label text-left"></label>
                            <label class="col-sm-4 col-form-label text-left">互联前端开关控制：</label>
                        </div>
                        <c:if test="${tenantSetting.stationOpenforWx == 0}">
                            <div class="form-group row">
                                <label class="col-sm-3 col-form-label text-right">公众号：</label>
                                <div class="col-sm-4">
                                    <input type="radio" style='margin-left:50px' name="stationOpenforWx"  value="0" <c:if test="${hlhtOperatorSetting.stationOpenforWx == 0}">checked</c:if>  >开启
                                    <input type="radio" style='margin-left:50px' name="stationOpenforWx" value="1" <c:if test="${hlhtOperatorSetting.stationOpenforWx == 1}">checked</c:if>  >关闭
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${tenantSetting.stationOpenforApp == 0}">
                            <div class="form-group row">
                                <label class="col-sm-3 col-form-label text-right">APP：</label>
                                <div class="col-sm-4">
                                    <input type="radio" style='margin-left:50px'  name="stationOpenforApp" value="0" <c:if test="${hlhtOperatorSetting.stationOpenforApp == 0}">checked</c:if>   >开启
                                    <input type="radio" style='margin-left:50px'  name="stationOpenforApp"  value="1"<c:if test="${hlhtOperatorSetting.stationOpenforApp == 1}">checked</c:if>   >关闭
                                </div>
                            </div>
                        </c:if>
                        <div class="form-group row">
                            <label class="col-sm-1 col-form-label text-left"></label>
                            <label class="col-sm-8 col-form-label text-left">说明：被选中的移动端,会出现所互联运营商的站点、电桩信息,并且能够正常启动电桩充电;</label>

                        </div>
                        <div class="form-group row">
                            <label class="col-sm-1 col-form-label text-left"></label>
                            <label class="col-sm-8 col-form-label text-left">&emsp;&emsp;&nbsp;&nbsp;&nbsp;未被选中的移动端,则代表该移动端互联互通不生效,在该移动端上不出现相关站点及电桩信息,也不能正常发起充电操作.</label>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-8 text-right">
                                <button type="submit" class="btn btn-primary">保存设置</button>
                                <span>上次保存时间:<fmt:formatDate value="${hlhtOperatorSetting.lastUpdatedTime}" pattern="yyyy-MM-dd HH:mm:ss" /></span>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    updateStationOpenfor.init();
</script>
</body>
</html>
